﻿using System;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Reflection;
using System.Runtime.Serialization;

namespace DomusDotNet.Sbm.Client.WP7.Models
{
	[DataContract]
    public class LendStatus
    {
        public static readonly LendStatus Available = new LendStatus { DisplayName = "available" };
        public static readonly LendStatus Lent = new LendStatus { DisplayName = "lent" };
        public static readonly LendStatus Delayed = new LendStatus { DisplayName = "delayed" };

        public static readonly LendStatus[] All = typeof(LendStatus).GetFields(BindingFlags.Static | BindingFlags.Public)
            .Select(x => x.GetValue(null))
            .OfType<LendStatus>()
            .ToArray();

        public LendStatus() { }

		[DataMember]
        public string DisplayName { get;   set; }
    }
}
